import Vue from 'vue'
import Vuex from 'vuex'
import user from './user'
import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)
export default new Vuex.Store({
  // 利用插件,把token存在vuex里面
  plugins: [createPersistedState()],
  modules: {
    user
  },
  state: {

  },
  mutations: {

  },
  actions: {

  },
  getters: {

  }

})
